﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003E3 RID: 995
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DoGachaCsReq : IMessage<DoGachaCsReq>, IMessage, IEquatable<DoGachaCsReq>, IDeepCloneable<DoGachaCsReq>, IBufferMessage
	{
		// Token: 0x17000CBE RID: 3262
		// (get) Token: 0x06002C78 RID: 11384 RVA: 0x0007AB15 File Offset: 0x00078D15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DoGachaCsReq> Parser
		{
			get
			{
				return DoGachaCsReq._parser;
			}
		}

		// Token: 0x17000CBF RID: 3263
		// (get) Token: 0x06002C79 RID: 11385 RVA: 0x0007AB1C File Offset: 0x00078D1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DoGachaCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000CC0 RID: 3264
		// (get) Token: 0x06002C7A RID: 11386 RVA: 0x0007AB2E File Offset: 0x00078D2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DoGachaCsReq.Descriptor;
			}
		}

		// Token: 0x06002C7B RID: 11387 RVA: 0x0007AB35 File Offset: 0x00078D35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaCsReq()
		{
		}

		// Token: 0x06002C7C RID: 11388 RVA: 0x0007AB40 File Offset: 0x00078D40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaCsReq(DoGachaCsReq other) : this()
		{
			this.gachaRandom_ = other.gachaRandom_;
			this.gachaId_ = other.gachaId_;
			this.simulateMagic_ = other.simulateMagic_;
			this.gachaNum_ = other.gachaNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002C7D RID: 11389 RVA: 0x0007AB94 File Offset: 0x00078D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DoGachaCsReq Clone()
		{
			return new DoGachaCsReq(this);
		}

		// Token: 0x17000CC1 RID: 3265
		// (get) Token: 0x06002C7E RID: 11390 RVA: 0x0007AB9C File Offset: 0x00078D9C
		// (set) Token: 0x06002C7F RID: 11391 RVA: 0x0007ABA4 File Offset: 0x00078DA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaRandom
		{
			get
			{
				return this.gachaRandom_;
			}
			set
			{
				this.gachaRandom_ = value;
			}
		}

		// Token: 0x17000CC2 RID: 3266
		// (get) Token: 0x06002C80 RID: 11392 RVA: 0x0007ABAD File Offset: 0x00078DAD
		// (set) Token: 0x06002C81 RID: 11393 RVA: 0x0007ABB5 File Offset: 0x00078DB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaId
		{
			get
			{
				return this.gachaId_;
			}
			set
			{
				this.gachaId_ = value;
			}
		}

		// Token: 0x17000CC3 RID: 3267
		// (get) Token: 0x06002C82 RID: 11394 RVA: 0x0007ABBE File Offset: 0x00078DBE
		// (set) Token: 0x06002C83 RID: 11395 RVA: 0x0007ABC6 File Offset: 0x00078DC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SimulateMagic
		{
			get
			{
				return this.simulateMagic_;
			}
			set
			{
				this.simulateMagic_ = value;
			}
		}

		// Token: 0x17000CC4 RID: 3268
		// (get) Token: 0x06002C84 RID: 11396 RVA: 0x0007ABCF File Offset: 0x00078DCF
		// (set) Token: 0x06002C85 RID: 11397 RVA: 0x0007ABD7 File Offset: 0x00078DD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaNum
		{
			get
			{
				return this.gachaNum_;
			}
			set
			{
				this.gachaNum_ = value;
			}
		}

		// Token: 0x06002C86 RID: 11398 RVA: 0x0007ABE0 File Offset: 0x00078DE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DoGachaCsReq);
		}

		// Token: 0x06002C87 RID: 11399 RVA: 0x0007ABF0 File Offset: 0x00078DF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DoGachaCsReq other)
		{
			return other != null && (other == this || (this.GachaRandom == other.GachaRandom && this.GachaId == other.GachaId && this.SimulateMagic == other.SimulateMagic && this.GachaNum == other.GachaNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002C88 RID: 11400 RVA: 0x0007AC5C File Offset: 0x00078E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GachaRandom != 0U)
			{
				num ^= this.GachaRandom.GetHashCode();
			}
			if (this.GachaId != 0U)
			{
				num ^= this.GachaId.GetHashCode();
			}
			if (this.SimulateMagic != 0U)
			{
				num ^= this.SimulateMagic.GetHashCode();
			}
			if (this.GachaNum != 0U)
			{
				num ^= this.GachaNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002C89 RID: 11401 RVA: 0x0007ACE6 File Offset: 0x00078EE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002C8A RID: 11402 RVA: 0x0007ACEE File Offset: 0x00078EEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002C8B RID: 11403 RVA: 0x0007ACF8 File Offset: 0x00078EF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GachaId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.GachaId);
			}
			if (this.GachaRandom != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.GachaRandom);
			}
			if (this.SimulateMagic != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SimulateMagic);
			}
			if (this.GachaNum != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.GachaNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002C8C RID: 11404 RVA: 0x0007AD88 File Offset: 0x00078F88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GachaRandom != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaRandom);
			}
			if (this.GachaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaId);
			}
			if (this.SimulateMagic != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SimulateMagic);
			}
			if (this.GachaNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002C8D RID: 11405 RVA: 0x0007AE10 File Offset: 0x00079010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DoGachaCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GachaRandom != 0U)
			{
				this.GachaRandom = other.GachaRandom;
			}
			if (other.GachaId != 0U)
			{
				this.GachaId = other.GachaId;
			}
			if (other.SimulateMagic != 0U)
			{
				this.SimulateMagic = other.SimulateMagic;
			}
			if (other.GachaNum != 0U)
			{
				this.GachaNum = other.GachaNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002C8E RID: 11406 RVA: 0x0007AE88 File Offset: 0x00079088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002C8F RID: 11407 RVA: 0x0007AE94 File Offset: 0x00079094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 8U)
					{
						this.GachaId = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.GachaRandom = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.SimulateMagic = input.ReadUInt32();
						continue;
					}
					if (num == 64U)
					{
						this.GachaNum = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400119D RID: 4509
		private static readonly MessageParser<DoGachaCsReq> _parser = new MessageParser<DoGachaCsReq>(() => new DoGachaCsReq());

		// Token: 0x0400119E RID: 4510
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400119F RID: 4511
		public const int GachaRandomFieldNumber = 5;

		// Token: 0x040011A0 RID: 4512
		private uint gachaRandom_;

		// Token: 0x040011A1 RID: 4513
		public const int GachaIdFieldNumber = 1;

		// Token: 0x040011A2 RID: 4514
		private uint gachaId_;

		// Token: 0x040011A3 RID: 4515
		public const int SimulateMagicFieldNumber = 6;

		// Token: 0x040011A4 RID: 4516
		private uint simulateMagic_;

		// Token: 0x040011A5 RID: 4517
		public const int GachaNumFieldNumber = 8;

		// Token: 0x040011A6 RID: 4518
		private uint gachaNum_;
	}
}
